package user;

import book.BookList;
import operation.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-04-01
 * Time: 9:22
 */
public abstract class User {
    protected String name;
    public IOPeration[] ioPerations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){
        this.ioPerations[choice].work(bookList);

    }
}
